package cn.islu.dao;

import cn.islu.bean.TbMusic;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface TbMusicDao {
    List<TbMusic> findAll();

   TbMusic findById(@Param("musicId") Integer musicId);

    List<TbMusic> likeByName(@Param("musicName") String keyword);

    List<TbMusic> likeByAlbumName(@Param("AlbumName") String keyword);

    List<TbMusic> likeByArtistName(@Param("ArtistName") String keyword);
}
